﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html>

<html>
<head id="PreviewApplication" runat="server">
    <title>Application</title>
    <link href="/Theme/UncleBobTheme.css" rel="Stylesheet" />
</head>

<body>
<h2>Preview Application</h2>
    <div class="body">

        <!-- Begin Form -->
        <% using (Html.BeginForm("FormAction", "ApplicantApply", FormMethod.Post)) {%>
        <div class="box">
            <div class="left-justify">

                <!-- Iterate through each Question and Answer pair and display -->
                <% foreach (KeyValuePair<string, string> question in Model) {%>
                    <%=Html.DisplayFor(model => question.Key)%>
                    <br />
                    <div style="font-weight: bold">
                    <%=Html.DisplayFor(model => question.Value)%>
                    </div>
                    <br />
                <%}%>

            </div>
        </div>

        <!-- Buttons -->
        <input class="button" type="submit" name="previewback" value="Previous" />
        <input class="button" type="submit" name="previewsubmit" value="Submit" />
        <input class="button" type="submit" name="previewcancel" value="Cancel" />
        <%}%>
    </div>
</body>
</html>
